package com.easyidea.its.domain.service.surveillance;

import java.util.Collection;
import java.util.List;

import com.easyidea.its.domain.model.surveillance.Alarm;
import com.easyidea.its.domain.repository.surveillance.AlarmRepository;
import com.easyidea.its.domain.service.base.BaseBeanService;
import com.easyidea.its.web.action.surveillance.dto.SurveillanceDto;
import com.easyidea.its.web.dto.AlarmTrackLogDto;

/**
 * 
 * @author hukn
 * 
 */
public interface AlarmService extends BaseBeanService<Alarm, AlarmRepository> {
	int getAlarmCountByDto(SurveillanceDto searchDto);

	Collection<Alarm> getAlarmByDto(SurveillanceDto searchDto, int start, int pageSize);
	
	Alarm getLatestAlarmByCondition(String passPortName, String direction);
	
	List<AlarmTrackLogDto> getLatestAlarm();
	
	boolean doDealWithAlarm(Integer alarmId);
}
